// 1通过，2不通过 ，3接单，4拒单，5、处理文字副本、6处理上传富文本
export const ActionMap = {
	success: "success",
	fail: "fail",
	order: "order",
	refuse: "refuse",
	text: "text",
	rich: "rich",
	successDesc: "通过",
	failDesc: "作废",
	orderDesc: "通过",
	refuseDesc: "退回",
	textDesc: "文字副本",
	richDesc: "上传富文本",
	successVal: 1,
	failVal: 2,
	orderVal: 3,
	refuseVal: 4,
	textVal: 5,
	richVal: 6
}

export const ActionEnum = {
	[ActionMap.success]: [ActionMap.successVal],
	[ActionMap.fail]: [ActionMap.failVal],
	[ActionMap.order]: [ActionMap.orderVal],
	[ActionMap.refuse]: [ActionMap.refuseVal],
	[ActionMap.text]: [ActionMap.textVal],
	[ActionMap.rich]: [ActionMap.richVal],
	[ActionMap.successVal]: [ActionMap.successDesc],
	[ActionMap.failVal]: [ActionMap.failDesc],
	[ActionMap.orderVal]: [ActionMap.orderDesc],
	[ActionMap.refuseVal]: [ActionMap.refuseDesc],
	[ActionMap.textVal]: [ActionMap.textDesc],
	[ActionMap.richVal]: [ActionMap.richDesc],
	// [ActionMap.successDesc]: [ActionMap.successVal],
	// [ActionMap.failDesc]: [ActionMap.failVal],
	// [ActionMap.orderDesc]: [ActionMap.orderVal],
	// [ActionMap.refuseDesc]: [ActionMap.refuseVal],
	// [ActionMap.textDesc]: [ActionMap.textVal],
	// [ActionMap.richDesc]: [ActionMap.richVal],
}

export const ActionConfig = {
	[ActionMap.successVal]: {
		style: {
			"background-color": "#30bf78",
			"color": "#ffffff"
		}
	},
	[ActionMap.failVal]: {
		style: {
			"background-color": "#f37b1d",
			"color": "#ffffff"
		}
	},
	[ActionMap.orderVal]: {
		style: {
			"background-color": "#30bf78",
			"color": "#ffffff"
		}
	},
	[ActionMap.refuseVal]: {
		style: {
			"background-color": "#f37b1d",
			"color": "#ffffff"
		}
	},
	[ActionMap.textVal]: {
		style: {
			"background-color": "#30bf78",
			"color": "#ffffff"
		}
	},
	[ActionMap.richVal]: {
		style: {
			"background-color": "#30bf78",
			"color": "#ffffff"
		}
	},
}